﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace ThiTracNghiem
{
    public partial class FormNewDevice : Form
    {
        public FormNewDevice()
        {
            InitializeComponent();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void btnBrowse_Click(object sender, EventArgs e)
        {
            saveBakFileDialog.Filter = "Backup File(*.bak)|*.bak";
            saveBakFileDialog.InitialDirectory = Application.StartupPath;
            saveBakFileDialog.FileName = "TracNghiemDBBackup.bak";

            if (saveBakFileDialog.ShowDialog() == DialogResult.OK)
            {
                txtFileLocation.Text = saveBakFileDialog.FileName;
            }
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            this.Hide();
        }
    }
}
